﻿<script type="text/template" id="contacts-views-index">
	<table class="grid clickable">
		<tr>
			<th>Id</th>
			<th>Name</th>
			<th>Address</th>
		</tr>
		<% _.each(contacts, function(c){ %>
			<tr onclick="jmvc.module('contacts').action('contacts','edit', <%=c.Id%>)">
				<td><%=c.Id%></td>
				<td><%=c.Name%></td>
				<td><%=c.Address%></td>
			</tr>
		<% }) %>
	</table>
</script>


<script type="text/template" id="contacts-views-edit">
	<label>Name:</label>
	<input id="Contact-Name" value="<%=contact.Name %>" />
</script>
